fix favorites query in user profile