Fixed one input/output mistake.