Fixed bug when recved bigger string than send.