fix for issue #61

Fixes issue #61