XRRRates not returning refresh rates

I’m having trouble using XRRRates to get the available refresh rates. I seem to be getting indexes into something else rather than the actual refresh rates. Does anyone know how to solve this problem?

XRRSizes returns valid sizes.

My application is using bare bones X rather than the Ubuntu desktop.