fixed insert_id reference