Fix input processing bug.