Fixed remove-method missing to update ther reference of the object that
substitutes the removed one.