fixed crash when changing visibility of a collapsed variety on the map