buildElasticRaw side effects bugfix