Fix a bug with the isolate detection