fixing indexpic