publish: solve map resize bug

generated from commit f8fa2af78906158bc368cf2175a790fe66fabc40