critical fix to class session