removed sneaky array out-of-bounds bug in avatar bone code