Fix bug with logOff.