Fix gcc compiler issue, missing method remove