Fix overwrtiting globals of animations