fix and test for issue #62