Fixed an error with bone extra matrix causing script to terminate