Found off by one error.
More debugging