Fixed row color bug

numRows value never gets updated when there is only one row, made an
if-statement to account for this