fix list index out of range in attendance