fix(plugin): ensure the callback gets fired once