clear whenCount on redirect