Fix attendance api