Fix a bug related to static minors