fix boxWidth/Height