fixed bug in function calculateEulerAngles