Bug fix: map is clickable when the map is invisible