Fix comparation logic