undo row in the right place