fix attendance counting