Fix hours comparison