Fix convert from str to int