modify auto width calculating