Fix behavior prototype event clobbering

fixes #1404