fixing metadata setter