fix retest behavior