bugfix in unwrapblocks