Fixed dispatch_input routine.