fixed invalid parsing string to integer