Fixes DevBoost/JaMoPP#17 as described in the issue.