LDA: Fix a bug introduced in Rev. 0fafa01