Bugfix. Closes #108.