fix incorrect isInt implementation