fixed prolem with add_namespace_to_record.