fix up existing metadata