fixed issue with deleting