fixed problem with sunrise