fixes #6462 - set width only if it's none zero