fix adding blocks with two different output encoding