fix problems encountered while editing for incorrect input