fix bytes saved