fixed removing an element