Add missing scoping

Fix exception when animating anything.