Fix missing scope declaration