fixed some table issues