Fixed a bug that caused tax rates to apply incorrectly.