fix for d_records not parsing correctly