make sure _last_id is incremented