fix directory compatient