Fix problem with broken input.