Fixed a possible bug with placing ExtendedMetadata blocks