Fixed a bug when moonPhase < 0 would mess up a lot of things.