Fix bug with type counts and infobox disappaearing on pan