fix populating of tabarray