[OE-3971] fixed reference tables being named incorrectly.