fix isInt checking