fixed flicker on load.