Output directory fix