fix bug for repeated Message