Ensure that switching projects refreshes counts

Before this PR, changing between two projects did not update the repo tracking data.