fix the issue of slow map loading