Fix comparison mistake