fixed stop script