hotfix for elastic 1.x; fixes #129