fix for directory adjust

fix for directory adjust