Fixed bug where empty line would be treated as row