Fix dawn/dusk comparison