fix Nitlight

While messing with #451, I found that nitlight was broken.

These two commit fix it