fixed bug for deleting