Fix #220 (Reported-by: Joseph Norton)

Fix #220. While at it, fix a comment in the surrounding code.