fixes wrong variable declaration in example script