fix index in helloworld sample