fix the delete row bug