fixed logout show error message bug