Fixed a bug which prevented some layers groups from animating smoothly