Make rule only run once

Without this change, the rule actually runs twice every time we plug in,
which is wrong.