hopefully fixes a race condition bug with google maps