fix a faulty insertion index
run fixpath on capi library_path_insert_r