Fix avatar url not being set properly