fix bug in user profile view