Log out bug fixed