fix remove method when methods are strings