fix to where updateRowCount is called