Fix inverse mate finding for LDA