409.34 clean up error correction function in st_prep_line