fix in check_input when aborting