fixed an issue where updateRowCount revmoed last data row