Fix a sub directory bug.