Don't refresh at first tick, as it gets called right after the window is loading