Fix window size issue on cluster