Fixing ch to dir