fixing some odd behaviour inside the avatar service