fixed bug where HistoryPx would fail to create a __ variable