Fixed key batch boundary duplicate error