fix invalid read (iterator is not valid after element was erased + use std::remove
fix invalid read (iterator is not valid after element was erased + use std::remove

Endika/Natron,Endika/Natron,Endika/Natron