999 deserialize bag before replace record ids

Fixes issue #129