fix map loading issue