fix bug with map not showing second time