fixed logouting