Fix a bug where the script patching converted float numbers