Fix an issue with the type of the values when using the "record" mode.