fix bug with avatars