Fix plugins by reverting prepare_config