fixed spacing issue in setWidth