Fix issue with reference table missing options with a very suboptimal solution