Fixing event-driven plant generation and updating.