fix set height and width bug