Fixed Index OOB error

seems to be working well with multiple chromosomes and I think we can do the full human genome now!