Fix bug where refreshing would keep existing pins.