Fixed crashing on assigning bones