fix socket message duplicate issue.