Fixed bugs in category ccontroller

Signed-off-by:  <akorolex>