Put metadata back in 

(not totally functional: it always uses first dataset's metadata)