Removed useless type checking in setting carrying.