Fixed off-by-one errors with ilocus creation