bug fix in retarget_to_length... caused by a bad copy/paste job