Fix fouc like effect on .main