fix for Issue#2

This fix resolves #2.