Fix race conditions

Only instantiate other classes when the map is fully loaded, because
other objects may need it.