Fixed if else arg for autowrap.