diff --git a/imce_crop.js b/imce_crop.js
index 5e4dbe8..65204da 100644
--- a/imce_crop.js
+++ b/imce_crop.js
@@ -1,4 +1,3 @@
-
 (function($) {
 //implementation of imce.hookOpValidate
 imce.cropOpValidate = function() {
@@ -103,8 +102,8 @@ imce.cropDo = function(e) {
     var nX = e.pageX, nY = e.pageY, fX = nX - IO.left, fY = nY - IO.top, W = (nX - X)||1, H = (nY - Y)||1;
     if (W < 0) D.css('left', fX +'px');
     if (H < 0) D.css('top', fY +'px');
-    elX.value = (W < 0 ? fX : iX) + imce.cropperXextra;
-    elY.value = (H < 0 ? fY : iY) + imce.cropperYextra;
+    elX.value = parseInt((W < 0 ? fX : iX) + imce.cropperXextra);
+    elY.value = parseInt((H < 0 ? fY : iY) + imce.cropperYextra);
     D.width(elW.value = Math.abs(W));
     D.height(elH.value = Math.abs(H));
     return false;