Fixed a width calculation error