fixes for scripted avatars