fix issue #23 pull request

fix issue #23 pull request