nextUrl fix