fixing a index/show query