prevent inf loop
Merge pull request #284 from artivis/map_saver_loop

prevent inf loop