Fix a bug in the pitchup code