fixed Logout problem while fetching data