workaround for 'event.currentTarget undefined' problem