fixes #20 - empty rows may have resulted in an error