Fixed RE scope bug.