fix logout error