fixed the singular value problem