smofi_path bug fixed