SunMoon uninitialized reference fix