Throw exception if current invalid index