Fix the recursive category folder bug