fixing logout error