event bugfix