fix for attendance counts in DB, model and UI