fix #1569 scripts are not working

fix #1569 scripts are not working