Eular angle calculation fix