fix bug on compare string to int value