fixes github issue #1