Correction de l'inversion d'input et output.