fix rare herd immunity bug