Fixed lda data tools bug