     { r: { group, user, account }, clientIP } = client
 
     storage ?= 3
+
+    if isNaN storage
+      return callback new KodingError \
+      'Requested storage size is not valid.', 'WrongParameter'
+
     userIp   = clientIP or user.registeredFrom?.ip
     provider = 'koding'
 

               always on vm limit has been reached.""", "UsageLimitReached"

        if resize?
          if resize > userPlan.storage
            return callback new KodingError \
            """Requested new size exceeds allowed
               limit of #{userPlan.storage}GB.""", "UsageLimitReached"

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

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