Major bug fixed in instance set creation