Fixed closing window 0
Merge branch 'master' into plugins