Fixed string->double conversion bug

Fixed a bug which caused double values to be read incorrectly