fixed a bug that occurred with numerical values sent as strings by the api