Fix event contexts.