Fixed window refreshing