fix recordattendance bug