fix active scope