Fix bug in update-attendance.