Pd: Fix duration bugs in r_line and r_subline