Fixed bugs with Cop calcuation...