Fix wrong ridirect.