fix bug logout