Fixing event parsing from JSON.