fix bug for repeated Message

fix bug for repeated Message