bugfix: fix cur_dir