Fixed minor bug with animation of objects in editor