fixed lda bug