fix height/width inaccuracy.