client: bugfix for maxtries