adding mike's patch
Rendering expressions for indexes