fixed bug about creation of ids and connection_ids