fix for FOUC