bugfix elastic example