Fix inject pagename to $vars