module undefined prevention