fixed fencepost error, all current tests pass