fixed the problem of Euler angle extraction by integrating the differentiation