Fixed ref name for e.index