fix error in logout where logout creates error of intrusion