Fix Directory Bug