1. fix serious bug in location-app