fix bug in client download