try fix bug that not end script