fixed n+1 for user profile page
fixed some bugs
merge n+1