fix adding resource registry rule