Solving errors with comparaison