minor typos in check_inputs