fixing some table issues