Are you sure "autocorrect" is the term you wanted; could you mean that that it did not update when you changed the page variable?
If you want that
H1
to update when you change
ViewData["Title"]
then you need to change the content to use that variable
@{
ViewData["Title"] = "Index";
}
<h1>@ViewData["Title"]</h1>