Correction to PET 'Cosine' method

Small bug was fixed.