Fix post code ranges. Closes #2624.