University of Buffalo apologizes after 5,000 mistakenly told