fixed isPositiveInt