Fixed some bugs with large quaternions.