Fix bug on category update