fixed empty row case.