Fixed $historyPlugin variable name.