fix upgrade to es v1.2.4
Merge pull request #1060 from crate/m/upgrade_fix

fix upgrade to es v1.2.4