Fixed problems in the example script