fix #1134 ElasticContractResolver could use some else if action