Reset child modules and classes automatically