set ctx->firstrun = 0