Fix error when execute script's.