fixed the build on non mdx configuration