Fix exception and None redirect.