fixed read from index