Fixed the mod check so that it works properly