lua: rebuild to update metadata objs.