Fix for correct use in tcp