Fixed checking of mods