bugfix, closes #61