fix Directory Mapping bug