Fixing remote sessions