unbreak the localmode detect