minor fix to event delegation