Fixed a bug in total attendance filter