                 }
                 SBConstrain(&newSize.width, min: 1)
                 SBConstrain(&per, min: 0.01)
-                widthField.stringValue = String(Int(newSize.width))
-                scaleField.stringValue = String(Int(per * 100))
+                widthField.integerValue = Int(newSize.width)
+                scaleField.integerValue = Int(per * 100)
             }
             newSize.height = value
-            heightField.stringValue = String(Int(newSize.height))
+            heightField.integerValue = Int(newSize.height)
         } else if field === scaleField {
             if locked {
                 per = CGFloat(scaleField.integerValue) / 100
                 if per < 0.01 {
-                    scaleField.stringValue = String(1)
+                    scaleField.integerValue = 1
                     per = 0.01
                 }
                 if onlyVisibleButton.state == NSOnState {

                onlyVisibleButton.state = NSUserDefaults.standardUserDefaults().boolForKey(kSBSnapshotOnlyVisiblePortion) ? NSOnState : NSOffState
            }
            // Set image to image view
            widthField.stringValue = String(Int(r.size.width))
            heightField.stringValue = String(Int(r.size.height))
            scaleField.stringValue = String(100)
            update(field: nil)
            successScale = 1.0
            

                newSize.width = image!.size.width * per
                newSize.height = image!.size.height * per
            }
            widthField.integerValue = Int(newSize.width)
            heightField.integerValue = Int(newSize.height)
            scaleField.integerValue = Int(per * 100)
        }
        updatePreviewImage()
        r.size = newSize
