[fix] window -> global