fix deleting validation bug