fixed options.dir error