test case and fix for issue #188

fix and test case.