fixed accumulating metadata