fixes #5 on github.