999 deserialize bag before replace record ids

Fixes issue #129
@fmarsoni why did you change this to use `.exec()`?