minor fix for events