fix lda solver