fix non-existing directory