fixes for scripted avatars

-closes #2035