fix window size cannot resize