Fix bug of converting from String