Bug fix. This closes #83.