Fix lua index method format