     JPaymentProduct = require './product'
 
     planCodes = Object.keys quantities
-    productSelector = planCode: $in: planCodes
+    productSelector = { planCode: { $in: planCodes } }
 
     for planCode in planCodes
       quantities[planCode] = +quantities[planCode]


    targetOptions ?= {}
    targetOptions.options ?= {}
    targetOptions.options.sort ?= sortWeight: 1

    @fetchProducts selector, { options, targetOptions }, callback

        callback err
      else if planCode?
        recurly.deletePlan { planCode }, (err) ->
          return callback err  if err and err.short isnt 'not_found'

          callback null
      else
        callback null
