fix upgrade to es v1.2.4