Fix bug sending back two finished frames for tcp robot