[fix] fixing when passing object and tcp