fix output bug for jam