fix output of chain sequences