Fix broken record id