Fix table references.