fixed removing bug