Dont have access to the code right now. Do the variables keep their value on a history.go(-1)?