fix guard condition for csv. resolves #247.