bug#fix logout