Fix reversed input.