fix finding characters by socket