fixed bug in event service