Fixed declaration mismatch in event manager