fix logout problem

fix logout problem