fix up old LD code