Fixed error (closes issue #238)