Bugfix. See issue 2.
Merge branch 'issue-2'