Fix friend_url undefined bug