fix the delete statement