fixed window load to window ready