fix projection on indexed query