minor bug when recurring the script.