BUGFIX: new_id not next on id_gen