Have you tried creating the members such as `on_ev2` in the init of Events instead of outside of it? May be it handles them differently.