fixed removing elements