Fix handling of lda.