Fix crash on user dashboard because of badges