Fixed some bugs: make window size fixed;