Added fix to LDA