fix autofit wrapping