fixed odd reference issues with super fast window.opens