Fix issue #45

fixes #45