fixed client retry bug