fix folding module not being loaded in some cases.