Fix: fix the simulation and plugin framework