Fixed message duplication on reconnect