Fixed a compare for string to int