fix style lag on load