pull in fix for issue #40 to gh-pages