fix missing directories