fix wrong var used in call to history.navigate()