Fixed some directory bug (hopefully)