fix loading avatars