Fixed missing parameter 'type' for update and renamed variable for it