fixed a ref in index