fixed typo in set_length_no_z