better error message on dashboard_stats