prevent calling plugin twice.