Fixed a couple edge cases with the %b boundary pattern.