Fix ES repositories from hanging.