removed bug when user logouts