Corrected a bad optimisation.