The threshold is not correct. It should be relative to the largest singular value. Please see my previous comment about RCOND.