Fixed minor LD and LDA stuff