Bug fix for user profile