fix plugin load crash