Fixed a string to number issue