fix redering map bugs