Fixed inverted check on remove.