Bug with function getAllAttendance Fixed