jpevents bugfix