fix broken redirect after logout