Fix kit action count query