closed #4610, fix int comparasion