Fix logout redirect issue.