Fix "undefined NaNth 0NaN" error on last Events entry.