fixed typo of maindir_fin