fix some bugs in Sunrise/Sunset calculation