fixing send bytes