Fix directory after it was changed