Fix root directory bug