window size problem fixed