fixed deleting logic