fix basedir issue