fix missing directory issue