fix two directory problem