revert metadata on gateway