fix bug in tutorial scripts