Fixed delete row function.