fix table issues