fixed create and update categories based in category id