fix bug for width