bug fix, reference to window object