fixed crash on test case of spine.