fix cooks distance