add missing last_id