fix bug logout context