fixes #39 thanks Clement!