Fixed hibernate error when trying to recalculate tagStatistics