Fix bad transferred bytes number