Changed comparation in the controller