logout error fixed