hack to fix nested union issue