Fix crash on user profile page