Fix bad option set, and make reginMap check more readable.