fix stop call in script