fixed typo in width handling