fix url bug and restore category_generator.rb