Fixed ST_remove method