fix; nil is not iterable; refs #1