fixed issue where when adding a cell in a row not in sequence would cause corrupted excel data.