bug with window object