fixed waitForLoad Promise