fix in maven and fix about closing nested folds