fixed main nav flicker