             if (resize - storageSize) + usage.storage > userPlan.storage
               return callback new KodingError \
               """Requested new size exceeds allowed
-                 limit of #{userPlan.storage}GB.""", "UsageLimitReached"
-            else if resize == machine.getAt 'meta.storage_size'
+                 limit of #{userPlan.storage}GB.""", 'UsageLimitReached'
+            else if resize is machine.getAt 'meta.storage_size'
               return callback new KodingError \
               """Requested new size is same with current
-                 storage size (#{resize}GB).""", "SameValueForResize"
+                 storage size (#{resize}GB).""", 'SameValueForResize'
 
             fieldsToUpdate['meta.storage_size'] = resize
 

        price : 'free'
      }
    ]

            { _id : ObjectId machineId }
            { uid : machineId }
          ]
          users        :
            $elemMatch :
              id       : user.getId()
              sudo     : yes
              owner    : yes
          groups       :
            $elemMatch :
              id       : group.getId()

        JMachine.one selector, (err, machine) ->

          if err? or not machine?
            err ?= new KodingError 'Machine object not found.'
            return callback err

          fieldsToUpdate = {}
