K3.1 : fix undefined variable in category index #2367 (regression)