fix trailer metadata