better handling of object persistency at the end of an animation