Fix the cas logout issue