Fix deleteRow crash