[#5453] Fixing errors in userstats