fix compute accuracy test index bug