correct process the root directory