Fixed crash reported in Issue #7.