fixing lda in svd