fix nil error on minimized window
Merge branch 'master' of github.com:justmao945/lab