fixed a row clearing bug