fixed bugs in LDW and LEA