fix update attendance