Fix connect logout