some fixes to the update method in red_rest_controller