fix auto width behaviour