attempt to fix bug reported issue #199

See #199