fix infinite loop problem if lv table is null