Refined fouc fix