fix resource directory mapping