1. -Fix a bug of window.