fixed error on processing empty rows