Unit test should have caught this bug.