Change index to register instead of whatever it was before