fix to window namespace