fix for issue 47 in place.
version increment 0.1.11
fixed error message and fixed another case.
Merge pull request #48 from steenzout/issue-47

fix for issue 47 in place.