Fixed Log out issue