Fix for issue #1

fixes #1