fixed stop script.