Quaternion fix in update function

Integer math sabotages quaternion, fixed and verified.