Fix bug with RemoteTarget in nonlinear search