fixed a warning in cox