fix event demo on Firefox