fix dirs path issue