Fixed pitch.difference

Fixed the issue with pitch.difference