Fixed incorrect equation references resulting from index changes.