Outbreaks force early reversals on in-person learning