fixed autoincrements with collections with parents classes