fixing nightlight bugs