Fix an issue where redirects in dispatch can be overwritten by ctx.save()