fixed window size bug