Try to remove some shuffles in the apps

fix optimization twice error
Ok, maybe you can add some comments here to explain the idea. The difference between map and map_region is not clear for other people. After commenting, feel free to merge it.