some fix (except a bug with insert model in collection without id)