fixing scope template