Tries to fix isInteger validator method