fix npe in MetaDataCapture