fixed logic error with add hidden process to collection where index = 0 was regarded as not existing