fixing directory issue