Fix an issue with bulk insertion.