fixed a COP issue

COPz was giving NaN values. Made all NaN's into zeros and tested. Worked
great