Fix missing var in index