fixed creating of missing dir