Fix logout on admin rest api