restore back needed_bytes