Fixed the integer comparison