Fix a serious bug in sessioncheck