Trying to recover from ill-conditioned matrices