removed the scope problem

When increasing or decreasing the zoom, most elements would go out of
scope. This will fix it, though it is probably a temporary solution.