batch insert fix