Corrected variable names in LD script