Error registering event if more than 2 events

please add Code tags in your post