bugfix of lda_trainer