Fixed schema detection during CAS logout