fix issue #662