added fix for eigenvectors with rows of zeros