mets file truncation after first closing tag added
fixing getByte bug