bugfix: type in event object