fixed repeated message iteration