fixed bug logout