fix bug of stop script