Trying to ensure that the avatar is loaded before rendering