fixed reference on index