Fixed check for integers