Fix logout redirect issue