Fixing disconnect errors.