fixed rerun of script