Sustain Pedal CC64 not working in Cubase 8.5

I know, this is the strange part; the sustain pedal works fine in Cubase 6.5 but not in Cubase 8. I have two pedals, both Roland, one capable of outputting continuous data and the other just a straight switch pedal, they both behaved the same. So I doubt it is the problem of the pedal.