Fixed attendance bugs