fixes in the sunrise/sunset fcn