fixes error that caused the attendance chart to not be populated