Fix accidental variable swap in get events json call.