Fix not generate for disabled modules