Script stop fix.