fixes github issue #50