Fixed problem with day and night