Fixed directory bug