Fix simple script bug