Fix category index