fix redirect when logout