Fix bug with load callbacks being called twice with waitForAll parameter