Rename index and active variables