- fixed bug on logout