circumvent the empty row error