fix index expression type