refs #38 Fix for write peer metadata