Fix a bug in quaternion division.