fixed problem with deleting