fixed message duplication on new connection bug