fixed my delete bug