Fix category_path method not found error