Bug fix

fix issue #23