fix dn_expand empty name handling and offsets to 0