Behavior delegate events bug

fixes #2144. thanks @jonknapp for the great bug report and test.