Fixed a bug in revised mod set analysis