fixed update method in categories controler