fix dusk bug