[api] some fixes for event notifications