table errors fixed