Fix fencepost bug.