fixes autorefresh switching between maps