[#5453] Fixed bug in userstats model