correction when deleting a row