Fixes

The focus listener did caused the program to loose the sync with the
map.