Fix directory recursion.