 					// Index
 					int idx = original_number_of_connections + (i-prestart) + (j-poststart)*(preend-prestart);
 					// Setup Synapses
-					presynaptic_neuron_indices[idx] = group_type_factor*i;
+					presynaptic_neuron_indices[idx] = group_type_factor*i + group_type_component;
 					postsynaptic_neuron_indices[idx] = j;
 				}
 			}


						// Setup the synapses:
						// Setup Synapses
						presynaptic_neuron_indices[total_number_of_connections - 1] = group_type_factor*i;
						postsynaptic_neuron_indices[total_number_of_connections - 1] = poststart + temp;

						// Increment conn_tgts

						increment_number_of_connections(1);

						// Setup Synapses
						presynaptic_neuron_indices[total_number_of_connections - 1] = group_type_factor*i + group_type_component;
						postsynaptic_neuron_indices[total_number_of_connections - 1] = j;
					}
				}
