Update of do_preprocessingto bypass an error