Fixed suncalc which did not work after refactoring.