fix: "Undefined variable: category"