fix string to number bug