transfer metadata: deal with null metadata sets