#475 Undefined variable: cur_index