Bug K-SVD outpu NaN for some A