fixed lda hang bug
Merge pull request #233 from jhofman/master

fixed lda hang bug