fix(run_cmd): check truncate method