fixed generator module loading when generator itself can't load some module