restore "next" callback