fix the final tcp bug