fixed wrong directory bug