Fix false instantiation of APEventWriter in UIEventWriter