This is a duplicate of #4 but I'm opening a new one because, for some reason, the author is just closing issues without merging in the fixes. This is an open issue, and I hope by making it here it saves somebody some time if they come up against this.