Fixed parseInt bug in IE8.