Fix function delete row