fix syntax issue on avatar_url function