fixed LD bug