likelihood bug fixed with both LDA and PCA