fix precompilation for nightmode