fixed attendance bug