Fix issue #125, clear mapsetting every time the app is destroyed