fix numerical issue in checking the norm of quaternions