Fixed window size bug