Fixed the error where session get set to undefined on audience mismatch.