Avoid destroying output if input incorrect.