fixed bug with multiple EventHandler assignments