Ld bug fix