Prevent redirect twice.