fix for issue #30

fixes #30