Fix permission changed by bad refactor.