Fix indexException introduced in previous commit.

Change-Id: I9dbcf228046ed63733254c9bec2b99e4d7d4a7e1