fixed github issue #2