fix flatten to 2d animation