Fixed elasticsearch scripts.