Update code to correct asserts when compare width attribute.