fix for AvatarHashMap crash when erasing avatars