Using loops in ableton sampler

Hi there,

I’m trying to use a bass loop in sampler, but when I pitch the sample up, it speeds it up too so the loop is out of time. I thought with sampler it accounted for this. Does anyone know how to make add note variations using loops without affecting the speed of the loop?