fixed a nightime bug