fixed double directory issue