Fixed a bug with index overflow